package com.sy.dto;

import java.util.List;

/**
 * @Author:fma
 * 用于封装统一的分页查询结果
 * @param <T> 分页查询结果中元素的泛型
 */
public class PageBean<T> {
    private Integer pageNo;
    private Integer pageSize;
    private Integer pageCount;
    private Long total;
    private List<T> records;

    public Integer getPageNo() {
        return pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }

    public Integer getPageCount() {
        return pageCount;
    }

    public void setPageCount(Integer pageCount) {
        this.pageCount = pageCount;
    }


    public Long getTotal() {
        return total;
    }

    public void setTotal(Long total) {
        this.total = total;
    }

    public List<T> getRecords() {
        return records;
    }

    public void setRecords(List<T> records) {
        this.records = records;
    }
}
